<?php
/**
 * This file is part of webman.
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the MIT-LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author    walkor<walkor@workerman.net>
 * @copyright walkor<walkor@workerman.net>
 * @link      http://www.workerman.net/
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */

return [

    'default' => 'mysql',
    'datetime_format' => false,//默认不需要格式化时间
    'connections' => [
        'mysql' => [
            // 数据库类型
            'type'        => 'mysql',
            // 服务器地址
            'hostname'    => env('DB_HOST', '127.0.0.1'),
            // 数据库名
            'database'    => env('DB_DATABASE', ''),
            // 数据库用户名
            'username'    => env('DB_USERNAME', ''),
            // 数据库密码
            'password'    => env('DB_PASSWORD', ''),
            // 数据库连接端口
            'hostport'    => env('DB_PORT', '3306'),
            // 数据库连接参数
            'params'      => [],
            // 数据库编码默认采用utf8
            'charset'     => 'utf8',
            // 数据库表前缀
            'prefix'      => env('DB_PREFIX', ''),
        ],

    ],
];
